package com.i1510.util;


public class JstStatusUtil {
    private JstStatusUtil() {
    }

    public static String getHsy2Jst(String shopStatus) {
        StringBuffer sb = new StringBuffer();
        switch (shopStatus) {
//            case "待付款":
//                sb.append("WAIT_BUYER_PAY");
//                break;
            case "已线上付款":
                sb.append("WAIT_SELLER_SEND_GOODS");
                break;
            case "已收款":
                sb.append("WAIT_SELLER_SEND_GOODS");
                break;
            case "待发货":
                sb.append("WAIT_SELLER_SEND_GOODS");
                break;
            case "部分发货":
                sb.append("WAIT_SELLER_SEND_GOODS");
                break;
            case "申请退款":
                sb.append("TRADE_CLOSED");
                break;
            case "申请退货":
                sb.append("TRADE_CLOSED");
                break;
            case "订单退款完成":
                sb.append("TRADE_CLOSED");
                break;
            case "待退款":
                sb.append("TRADE_CLOSED");
                break;
            case "待退货":
                sb.append("TRADE_CLOSED");
                break;
            case "退货中":
                sb.append("TRADE_CLOSED");
                break;
            case "已退款":
                sb.append("TRADE_CLOSED");
                break;
            case "已退货":
                sb.append("TRADE_CLOSED");
                break;
            case "已完成":
                sb.append("TRADE_CLOSED");
                break;
            case "已发货":
                sb.append("TRADE_CLOSED");
                break;
            case "已取消":
                sb.append("TRADE_CLOSED_BY_TAOBAO");
                break;
            default:
                sb.append("X");
                break;
        }
        return sb.toString();

    }
    public static void main(String[] args) {
        System.out.println(JstStatusUtil.getHsy2Jst("待付款"));
        System.out.println(JstStatusUtil.getHsy2Jst("待付款123"));

    }
}
